<!--#
 @version 0.2 (auto-set)
#-->

<!-- Table 'gpsactions' edit -->
<p align=center>
 <a href="?data_source=<#DATA_SOURCE#>">&lt;&lt;&lt; <#LANG_BACK#></a>
</p>
<table border=0 align=center cellpadding=3>
<form action="?" method="post" enctype="multipart/form-data" name="frmEdit">
[#if OK#]
<tr>
 <td colspan=2 align=center>
  <font color="green"><#LANG_DATA_SAVED#></font>
 </td>
</tr>
[#endif OK#]
[#if ERR#]
<tr>
 <td colspan=2 align=center>
  <font color="red"><#LANG_FILLOUT_REQURED#></font>
 </td>
</tr>
[#endif ERR#]
[#if ID=""#]
<tr>
 <td colspan=2 align=center><b><#LANG_NEW_RECORD#></b></td>
</tr>
[#endif ID#]
<!-- LOCATION_ID (select) -->
[#if !IS_SET_LOCATION_ID#]
<tr>
 <td align=right valign=top>
 [#if ERR_LOCATION_ID#]<b><font color="red">[#endif#]
 <#LANG_LOCATION#>: 
 (*)</td>
 <td>                                           
 <select name="location_id">
  <option value="">select
  [#begin LOCATION_ID_OPTIONS#]<option value="[#ID#]"[#if SELECTED#] selected[#endif#]>[#TITLE#]
  [#end LOCATION_ID_OPTIONS#]
 </select>
 </td>
</tr>
[#endif IS_SET_LOCATION_ID#]
<!-- USER_ID (select) -->
[#if !IS_SET_USER_ID#]
<tr>
 <td align=right valign=top>
 [#if ERR_USER_ID#]<b><font color="red">[#endif#]
 <#LANG_USER#>: 
 (*)</td>
 <td>                                           
 <select name="user_id">
  <option value="">select
  [#begin USER_ID_OPTIONS#]<option value="[#ID#]"[#if SELECTED#] selected[#endif#]>[#NAME#]
  [#end USER_ID_OPTIONS#]
 </select>
 </td>
</tr>
[#endif IS_SET_USER_ID#]
<!-- ACTION_TYPE (select) -->
<tr>
 <td align=right valign=top>
 [#if ERR_ACTION_TYPE#]<b><font color="red">[#endif#]
 <#LANG_ACTION_TYPE#>: 
 </td>
 <td>                                           
 <select name="action_type">
  <option value="">select
  [#begin ACTION_TYPE_OPTIONS#]<option value="[#VALUE#]"[#if SELECTED#] selected[#endif#]>[#TITLE#]
  [#end ACTION_TYPE_OPTIONS#]
 </select>
 </td>
</tr>
<!-- SCRIPT_ID (select) -->
[#if !IS_SET_SCRIPT_ID#]
<tr>
 <td align=right valign=top>
 [#if ERR_SCRIPT_ID#]<b><font color="red">[#endif#]
 <#LANG_SCRIPT#>: 
 </td>
 <td>                                           
 <select name="script_id">
  <option value="">select
  [#begin SCRIPT_ID_OPTIONS#]<option value="[#ID#]"[#if SELECTED#] selected[#endif#]>[#TITLE#]
  [#end SCRIPT_ID_OPTIONS#]
 </select>
 </td>
</tr>
[#endif IS_SET_SCRIPT_ID#]
<!-- CODE (text) -->
<tr>
 <td valign=top align=right>
 [#if ERR_CODE#]<b><font color="red">[#endif#]
 <#LANG_CODE#>
 :
 </td>
 <td valign=top>
 <textarea name="code" rows=12 cols=100 class="field span8">[#CODE#]</textarea>
 </td>
</tr>
<!-- LOG (text) -->
<tr>
 <td valign=top align=right>
 [#if ERR_LOG#]<b><font color="red">[#endif#]
 <#LANG_LOG#>
 :
 </td>
 <td valign=top>
 <textarea name="log" rows=12 cols=100 class="field span8">[#LOG#]</textarea>
 </td>
</tr>
<!-- EXECUTED (datetime) -->
<tr>
 <td align=right>
 [#if ERR_EXECUTED#]<b><font color="red">[#endif#]
 <#LANG_EXECUTED#>:
 </td>
 <td>
 <input type="text" name="executed_date" value="[#EXECUTED_DATE#]" maxlength=10 size=12>
 [#module name="dateselect" field="executed_date" form="frmEdit"#]
 &nbsp;&nbsp;&nbsp;
 <select name="executed_hours">
 [#begin EXECUTED_HOURS#]
 <option[#if SELECTED#] selected[#endif SELECTED#]>[#TITLE#]
 [#end EXECUTED_HOURS#]
 </select>
 :
 <select name="executed_minutes">
 [#begin EXECUTED_MINUTES#]
 <option[#if SELECTED#] selected[#endif SELECTED#]>[#TITLE#]
 [#end EXECUTED_MINUTES#]
 </select>
 </td>
</tr>
<tr>
 <td colspan=2 align=center>
 [#if ID!=""#]
 <input type="submit" name="subm" value="<#LANG_SUBMIT#>">
 [#else ID#]
 <input type="submit" name="subm" value="<#LANG_ADD#>">
 [#endif ID#]
 &nbsp;
 <a href="?data_source=<#DATA_SOURCE#>"><#LANG_CANCEL#></a>
 </td>
</tr>
<input type="hidden" name="id" value="<#ID#>">
<input type="hidden" name="view_mode" value="<#VIEW_MODE#>">
<input type="hidden" name="edit_mode" value="<#EDIT_MODE#>">
<input type="hidden" name="mode" value="update">
<input type="hidden" name="data_source" value="<#DATA_SOURCE#>">
</form>
</table>
